import baseUrl from './setBaseUrl.ts';
// let base = process.env.API_ROOT;
export const base = baseUrl + '/apiMobile';
let cityBase = baseUrl + '/apiMobileGroup'


import req from '../api/configApi';
//banner
export const bannerApi = params => { return req.post(`${base}/mall/goodsBanner`, params) };


//list
export const recordList = params => { return req.post(`${base}/signup/list`, params) };
export const cityApi = params => { return req.post(`${cityBase}/homepage/ipCity`, params) };
export const cityListApi = params => { return req.post(`${base}/city/list`, params) };
export const activeListApi = params => { return req.post(`${base}/activity/page`, params) };
export const InfoApi = params => { return req.post(`${base}/activity/info`, params) };
export const orderList = params => { return req.post(`${base}/order/onlineBmH5List/list`, params) };


// 登录获取验证码
export const getLoginVcodeApi = params => { return req.post(`${base}/wxMiniAppBm/sendQuickVcode`, params) };
// 登录login
export const loginApi = params => { return req.post(`${base}/wxMiniAppBm/quickLogin`, params) };
//个人资料
export const getMemberInfoApi = params => { return req.post(`${base}/member/getUserNickAndAvatar `, params) };

//
export const getUserNickAndAvatar = params => { return req.post(`${base}/member/getUserNickAndAvatar `, params) };
// export const signUpInfoApi = params => { return req.post(`http://192.168.4.15:9090/apiMobile/activity/signUp`, params) };
export const signUpInfoApi = params => { return req.post(`${base}/activity/signUp`, params) };
export const signupApi = params => { return req.post(`${base}/signup/joinAct`, params) };
// export const signupApi = params => { return req.post(`http://192.168.4.15:9090/apiMobile/signup/joinAct`, params) };
export const goodsListApi = params => { return req.post(`${base}/activity/getActGoods `, params) };
// export const goodsListApi = params => { return req.post(`http://192.168.4.15:9090/apiMobile/activity/getActGoods `, params) };